package homework.work4;

public class Circle extends Shape{
    private int radius;
    @Override
    public void getPerimeter() {
        System.out.println("circle perimeter= "+Math.PI*2*radius);
    }

    @Override
    public void getArea() {
        System.out.println("circle area= "+Math.PI*Math.pow(radius,2));
    }

    //构造器
    public Circle(int radius) {
        this.radius = radius;
    }
}
